import express from 'express'
import App from './src/components/user/login.jsx'
import moment from 'moment'
import React from 'react'
import ReactDOMServer from 'react-dom/server'

const app = express()

app.set('views', './')
app.set('view engine', 'ejs')

app.get('/', (req, res) => {
  const reactAppContent = ReactDOMServer.renderToString(<App />)
  res.render('index', {
    content: reactAppContent,
  })
})

app.listen(3000)